package com.soulmate.order.mapper;

import common.pojo.Order;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderMapper {

    void insertOrderAndOrderItem(Order order);

    List<Order> queryMyOrders(@Param("userId") String userId);

    void deleteOrder(String orderId);
}
